#pragma once
#ifndef CLOTHING_FACTORY_H
#define CLOTHING_FACTORY_H
#include "Clothing.h"

class ClothingFactory {
public:
    virtual Clothing* createClothing() = 0;
};

class JeansFactory : public ClothingFactory {
public:
    virtual Clothing* createClothing() override {
        return new Jeans();
    }
};

class UniformFactory : public ClothingFactory {
public:
    virtual Clothing* createClothing() override {
        return new Uniform();
    }
};

#endif // CLOTHING_FACTORY_H